{% load i18n %}
{% load analytics %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}" xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} : {% endif %}{% block head_title %}{% endblock %}{% endblock %}</title>
        <!--[if IE]><style>
            div {
                zoom: 1; /* trigger hasLayout */
            }
        </style><![endif]-->
      
        <link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/tabs.css" />
        <link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/facebox.css" />
        <link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/announcements.css" />
        <link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/accounts.css" />
        <link rel="stylesheet" href="{{ STATIC_URL }}uni_form/uni-form.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/style.css" />
	 
    
        {% if LANGUAGE_BIDI %}
        <style type="text/css" media="screen">
            div.right_panel {
                float: left; /* hotfix for sidebar */
            }
        </style>
        {% endif %}
        {% block extra_head_base %}
	<link rel="stylesheet" href="{{ STATIC_URL }}css/site_tabs1.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/avatar.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/blogs.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/comments.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/friends.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/groups.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/locations.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/messages.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/microblogging.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/pagination.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/photos1.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/tabs.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/topics.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/wiki.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/jquery.autocomplete.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}bookmarks/css/bookmarks.css" />
	<link rel="stylesheet" href="{{ STATIC_URL }}tasks/css/tasks.css" />
	
	<script src="{{ STATIC_URL }}pinax/js/jquery-1.4.1.min.js" type="text/javascript"></script>
	<script src="{{ STATIC_URL }}pinax/js/jquery.jcarousel.pack.js" type="text/javascript"></script>
	<script src="{{ STATIC_URL }}pinax/js/jquery-func.js" type="text/javascript"></script>
    {% block extra_head %}{% endblock %}

{% endblock %}
    </head>


<body class="{% block body_class %}shell{% endblock %}" id="page">
	<div id="top">
		<div class="cl">&nbsp;</div>
		 {% if site_wide_announcements %}
            <div id="site_wide_announcements">
                <ul>
                    {% for announcement in site_wide_announcements %}
                    <li>
                        <a href="{{ announcement.get_absolute_url }}">{{ announcement }}</a> -
                        <a href="{% url announcement_hide announcement.pk %}?next={{ request.path }}">{% trans "Hide announcement" %}</a>
                    </li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
	
		<h1 id="logo"><a href="/">QianNei.com</a></h1>
			<div id="search">
				<div class="field-holder">
					{% block login %}
						{% include "_account_bar.html" %}
					{% endblock %}
					{% block locale_switcher %}
						<div class="form">
							<form action="{% if request.user.is_authenticated %}{% url acct_language_change %}{% else %}/i18n/setlang/{% endif %}" method="post" id="locale_switcher">
								{% csrf_token %}
								<select name="language" onchange="$('#locale_switcher').submit()">
									{% for lang in LANGUAGES %}
										<option value="{{ lang.0 }}"{% ifequal lang.0 LANGUAGE_CODE %} selected="selected"{% endifequal %}>{{ lang.1 }}</option>
									{% endfor %}
								</select>
							</form>
						</div>
					{% endblock %}
					
					
				</div>
			</div>
			<div class="cl">&nbsp;</div>
		<div class="cl">&nbsp;</div>
		{% block right_tabs %}
   
		<div id="navigation">
		 {% if user.is_authenticated %}
			<ul>{% spaceless %}
			    
			    <li id="tab_profile" class="active"><a href="{% url profile_detail user.username %}"><span>{% trans "Profile" %}</span></a></li>
            <li id="tab_photos" ><a href="{% url photos %}"><span>{% trans "Photos" %}</span></a></li>
	    <li id="tab_topics"><a href="{% url topic_list %}"><span>{% trans "Topics" %}</span></a></li>
            <li id="tab_tasks"><a href="{% url task_list %}"><span>{% trans "Tasks" %}</span></span></a></li>
            <li id="tab_blogs"><a href="{% url blog_list_all %}"><span>{% trans "Blogs" %}</span></a></li>
            <li id="tab_wiki"><a href="{% url wakawaka_index %}"><span>{% trans "Wiki" %}</span></a></li>
            <li id="tab_tribes"><a href="{% url tribe_list %}"><span>{% trans "Tribes" %}</span></a></li>
            <li id="tab_tweets"><a href="{% url tweets_you_follow %}"><span>{% trans "Tweets" %}</span></a></li>
            <li id="tab_bookmarks"><a href="{% url all_bookmarks %}"><span>{% trans "Bookmarks" %}</span></a></li>
            <li id="tab_swaps"><a href="{% url offer_list_all %}"><span>{% trans "Swaps" %}</span></a></li>
            <li id="tab_projects"><a href="{% url project_list %}"><span>{% trans "Projects" %}</span></a></li>
	    <li id="tab_locations"><a href="{% url loc_yours %}"><span>{% trans "Locations" %}</span></a></li>
            <li id="tab_inbox"><a href="{% url messages_inbox %}"><span>{% trans "Inbox" %} ({{ combined_inbox_count }})</span></a></li>
	    
        {% endspaceless %}</ul>
        {%else%}
        <ul>
<li><a href="#" class="active"><span>首页</span></a></li>
			    <li><a href="/wiki/MemberDoing/"><span>会员活动</span></a></li>
			    <li><a href="/wiki/MemberList/"><span>会员名单</span></a></li>
			    <li><a href="/wiki/MemberShow/"><span>会员展示</span></a></li>
			    <li><a href="/wiki/QianneiPlan/"><span>千内计划</span></a></li>
			    <li><a href="/wiki/OurPartner/"><span>合作伙伴</span></a></li>
			    <li><a href="{% url about %}"><span>关于我们</span></a></li>        
        
        </ul>
    {% endif %}

		</div>	
		{% endblock %}
	</div>
      {% block subnav_base %} <div id="subnav" class="clearfix">{% block subnav %}&nbsp;{% endblock %}</div><div class="cl">&nbsp;</div>{% endblock %}

        
        {% block body_outer %}
        <div id="body">
            {% if messages %}
                <ul id="messages">
                    {% for message in messages %}
                    <li id="message_{{ forloop.counter }}"{% if message.tags %} class="{{ message.tags }}"{% endif %}>
                        <a href="#"><small>{% trans "clear" %}</small></a>
                        {{ message }}
                    </li>
                    {% endfor %}
                </ul>
            {% endif %}
            
            {% block body %}
            {% endblock %}
            
        </div>
        {% endblock %}


	
	
	<!-- Footer -->
	 <div id="footer">
	{% block footer %}
		<p class="right">{% trans "&copy; 2010 &lt;your company here&gt;" %} &nbsp; </p>
		<p><a href="{% url about %}">{% trans "About" %}</a><span>&nbsp;</span><a href="{% url terms %}">{% trans "Terms of Service" %}</a><span>&nbsp;</span><a href="{% url privacy %}">{% trans "Privacy Policy" %}</a><span>&nbsp;</span><a href="{% url dmca %}">{% trans "DMCA Notice" %}</a><span>&nbsp;</span><a href="#">Connect Us</a><span>&nbsp;</span></p>
		<div class="cl">&nbsp;</div>
	{% endblock %}
	</div>
	<!-- END Footer -->
	<br />
</div>
 
        <script src="{{ STATIC_URL }}pinax/js/base.js" type="text/javascript"></script>
        <script src="{{ STATIC_URL }}uni_form/uni-form.jquery.js" type="text/javascript"></script>
        {% include "facebox_js.html" %}
        {% block extra_body_base %}
    {% ga %}
    <script type="text/javascript" src="{{ STATIC_URL }}pinax/js/topics.js"></script>
    <script src="{{ STATIC_URL }}tasks/js/tasks.js" type="text/javascript"></script>
   
    {% block extra_body %}{% endblock %}
{% endblock %}
    </body>
</html>

